//
//  PopView.m
//  YuanCheng
//
//  Created by 朱亚杰 on 16/4/5.
//  Copyright © 2016年 dongshangtong. All rights reserved.
//

#import "PopView.h"

@interface PopView ()


@end

@implementation PopView

+ (instancetype)popView {
    
    PopView *popView = [[NSBundle mainBundle] loadNibNamed:@"PopView" owner:nil options:nil][0];
    popView.frame = [UIScreen mainScreen].bounds;
    return popView;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    
    _subTitleLabel.textColor = RGBACOLOR(250, 200, 150, 1);
    [_applyBtn setTitleColor:GreenColor forState:UIControlStateNormal];
    _applyBtn.layer.borderWidth = 1;
    _applyBtn.layer.borderColor = GreenColor.CGColor;
    _applyBtn.layer.cornerRadius = 3;
    _applyBtn.clipsToBounds = YES;
}

#pragma mark - 关闭弹出框
- (IBAction)closeSelf {
    
    if (_delegate && [_delegate respondsToSelector:@selector(popViewClose:)]) {
        [_delegate popViewClose:self];
    }
}

#pragma mark - 申请会员，跳转到申请会员页面
- (IBAction)applyMember {
    
    if (_delegate && [_delegate respondsToSelector:@selector(popViewClose:)]) {
        [_delegate popViewClose:self];
//        [_delegate popViewToApplyView:self];
    }
}

@end
